package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class testOfficeOnline_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<title>Insert title here</title>\r\n");
      out.write("<script type=\"text/javascript\" language=\"javascript\">\r\n");
      out.write("\t//打开文档\r\n");
      out.write("\tfunction OpenDoc() {\r\n");
      out.write("\t\tdocument.all.oframe.showdialog(1);\r\n");
      out.write("\t}\r\n");
      out.write("\t//创建文档\r\n");
      out.write("\tfunction NewDoc() {\r\n");
      out.write("\t\tdocument.all.oframe.showdialog(0);\r\n");
      out.write("\t}\r\n");
      out.write("\t//保存文档到本地\r\n");
      out.write("\tfunction SaveCopyDoc() {\r\n");
      out.write("\t\tdocument.all.oframe.showdialog(3);\r\n");
      out.write("\t}\r\n");
      out.write("\t//关闭文档\r\n");
      out.write("\tfunction CloseDoc() {\r\n");
      out.write("\t\tdocument.all.oframe.Close();\r\n");
      out.write("\t}\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t<input type=\"button\" value=\"打开文档\" onClick=\"return OpenDoc();\">\r\n");
      out.write("\t<input type=\"button\" value=\"创建文档\" onClick=\"return NewDoc();\">\r\n");
      out.write("\t<input type=\"button\" value=\"保存文档\" onClick=\"return SaveCopyDoc();\">\r\n");
      out.write("\t<input type=\"button\" value=\"关闭文档\" onClick=\"return CloseDoc();\">\r\n");
      out.write("\t<table width=\"100%\" height=\"95%\" cellpadding=\"0\" cellspacing=\"0\"\r\n");
      out.write("\t\tborder=\"0\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td valign=\"top\" width=\"100%\">\r\n");
      out.write("\t\t\t\t<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"\r\n");
      out.write("\t\t\t\t\tborder=\"0\">\r\n");
      out.write("\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t<td valign=\"top\"><object\r\n");
      out.write("\t\t\t\t\t\t\t\tclassid=\"clsid:00460182-9E5E-11d5-B7C8-B8269041DD57\"\r\n");
      out.write("\t\t\t\t\t\t\t\tcodeBase=\"dsoframer.cab\" id=\"oframe\"\r\n");
      out.write("\t\t\t\t\t\t\t\tname=\"oframe\" width=\"500px\" height=\"500px\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"BorderStyle\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"TitlebarColor\" value=\"52479\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"Titlebar\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"TitlebarTextColor\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"Menubar\" value=\"1\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<param name=\"Toolbars\" value=\"1\">\r\n");
      out.write(" \t\t\t\t\t\t\t</object></td>\r\n");
      out.write("\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t</table></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
